package medicalDeptSubModel

import (
	"gorm.io/gorm"
	"jjqzplucky.site/sz-core/internal/models"
)


type MedicalDeptSub struct {
	models.BaseModel
	// 科室id            
	DeptID     *int64  `json:"deptId"`
	// 位置几号楼几层         
	Location   *string `json:"location"`
	// 科室名称            
	Name       *string `json:"name"`
}


func (m *MedicalDeptSub) BeforeCreate (db *gorm.DB) (err error) {
	err = m.BaseModel.BeforeCreate(db)
	return
}

type QueryParam struct {
	Name *string `form:"name"`
	Location *string `form:"location"`
	models.PageParam
}